/**
 * 回复模型 
 * 
*/
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("replies", {
        id: {
            type: Sequelize.UUID,
            notNull: true,
            primaryKey: true,
            defaultValue: Sequelize.UUIDV4,
        },
        commentsId: {
            type: Sequelize.STRING,
            notNull: true,
            notEmpty: true,
            comment: '评论id',
            index:true,
            field:'comments_id'
        },
        userId: {
            type: Sequelize.STRING,
            notNull: true,
            notEmpty: true,
            comment: '回复用户',
            index:true,
            field:'user_id'
        },
        content: {
            type: Sequelize.TEXT("long"),
            comment: '回复评论内容',
        }
    })
}